#include<iostream>
using namespace std;
int arr[1100];
int main()
{
	for (int i = 1; i <= 300; i++)cin >> arr[i];
	for (int i = 1; i <= 300; i++) {
		int x;
		cin >> x;
		if (x != arr[i]) {
			cout << i << "   " << x << endl;
			cout << "hhhhhhh" << endl;
		}
	}
	return 0;
}

